package quoridor;


/**
 * Representation of a wall in Quoridor. local variable
 * 'valid' default false, and is set to true once it is
 * determined that placement of the wall does not violate 
 * game rules.
 *   
 * <pre>
 * Initial version (17/09/2012)
 *  - Added valid flag
 * </pre>
 * @author Ashleey
 */
public class Wall {
	
	private boolean valid;
	
	public Wall() {
		valid = false;
	}

	/**
	 * Obtains validity of wall placement
	 * @return true if wall is valid
	 */
	public boolean isValid() {
		return valid;
	}

	/**
	 * Sets validity of wall placement
	 * @param valid true or false
	 */
	public void setValid(boolean valid) {
		this.valid = valid;
	}
	
	
}
